import os

# 统一认证配置
BASE_URL = 'https://chat.qwen.ai/api/'
HEADERS = {
    'accept': 'application/json',
    'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8',
    'authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjA0MjNmZmQyLWE3YjYtNGEzNC05N2U4LTdjOGFhMjYzMTUzOSIsImV4cCI6MTc0Mzc3MTkzMX0.vqR8UB-kJDUogdH-MTOPgbSkL7NjQYPvSrQx-UQ_iQU',
    'origin': 'https://chat.qwen.ai',
    'referer': 'https://chat.qwen.ai/c/a0de87e8-63fa-454f-88fb-879c8077ea0c',
    'sec-ch-ua': '"Not(A:Brand";v="99", "Google Chrome";v="133", "Chromium";v="133"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"macOS"',
    'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36',
    'x-request-id': 'c64f21d2-4674-4e7b-a0c4-fdbb31713c8d',
    'bx-v': '2.5.28'
}

# 文件上传配置
UPLOAD_URL = BASE_URL + 'v1/files/'
UPLOAD_HEADERS = {
    **HEADERS,
    'content-type': 'multipart/form-data; boundary=----WebKitFormBoundaryQY3YFquMauO8FyM6'
}